home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / ARASAN_S.ZIP / SRCLIMIT.H < prev    next >
C/C++ Source or Header  |  1994-07-17  |  1KB  |  46 lines

  1. // Copyright 1994 by Jon Dart.  All Rights Reserved.
  2. #ifndef _SEARCH_LIMIT_OPTIONS_H
  3. #define _SEARCH_LIMIT_OPTIONS_H
  4.  
  5. #include <wpp.h>
  6. #include <wpdlg.h>
  7. #include "types.h"
  8. #include "timectrl.h"
  9.  
  10. struct Search_Limit_Options
  11. {
  12.    // holds state of the dialog
  13.    Search_Limit_Options();
  14.    Search_Limit_Options( const Time_Control &tc, const Control c );
  15.  
  16.    Boolean parse( Time_Control &tc, const Control c );
  17.    
  18.    int search_type;
  19.    char move_or_ply[20];
  20.    char time_limit[20];
  21. };
  22.  
  23. class SearchLimitDialog : public WPDialogModal
  24. {
  25.     // handles the Search Limit ... dialog box in the Options menu.
  26.  
  27. public:
  28.  
  29.     SearchLimitDialog(WPWin *pwin, Search_Limit_Options *primary_options,
  30.         Search_Limit_Options *secondary_options);
  31.     
  32.     // override WPDlg virtual functions:
  33.     void initDlg();
  34.     
  35.     BOOL command( int id, WORD msg );
  36.     
  37. private:
  38.     void new_type(int srctype);
  39.     HWND hMinutes_field, hMinutes_text, hSecondary;
  40.     HWND hPly_text;
  41.     static WPControlMap ControlMap[];
  42.     int initial_search_type;
  43.     Search_Limit_Options *secondary_options;
  44. };
  45.  
  46. #endif